package com.homework_gui;


import java.util.ArrayList;

/*
1）设计一个JFrame窗口，输入学生的基本信息，包括
学号、姓名、学院、专业（下拉列表）、班级、籍贯（级联）、性别（单选按钮）、爱好（多选）、备注等，
在界面中包括提交和重填按钮。提交后弹出窗口显示学生信息。要求尽量使用不同的Swing组件。实验截图如下：
 */
public class Student {
    private String name;//姓名
    private String id;//学号
    private String collage;//学院
    private String specialty;//专业
    private String class_name;//班级
    private String sex;//性别
    private ArrayList<String> hobby;//爱好
    private String address;//籍贯

    public Student(String name, String id, String collage, String specialty, String class_name, String sex, ArrayList<String> hobby, String address) {
        this.name = name;
        this.id = id;
        this.collage = collage;
        this.specialty = specialty;
        this.class_name = class_name;
        this.sex = sex;
        this.hobby = hobby;
        this.address = address;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCollage() {
        return collage;
    }

    public void setCollage(String collage) {
        this.collage = collage;
    }

    public String getSpecialty() {
        return specialty;
    }

    public void setSpecialty(String specialty) {
        this.specialty = specialty;
    }

    public String getClass_name() {
        return class_name;
    }

    public void setClass_name(String class_name) {
        this.class_name = class_name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public ArrayList<String> getHobby() {
        return hobby;
    }

    public void setHobby(ArrayList<String> hobby) {
        this.hobby = hobby;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
